//用户相关的
import request from '@/utils/request'

//验证手机号是否被注册  /user/docheckphone
export const docheckphoneApi = (tel:string)=>request.post('/user/docheckphone',{tel}
)

//发送验证码
export const sendCodeApi = (tel: string) => request.post('/user/dosendmsgcode', { tel })

//验证验证码
export const checkCodeApi = (tel: string, telcode: string) => request.post('/user/docheckcode', { tel, telcode })

//2次验证密码 ,确认注册
export const finishregisterApi = (tel: string, password: string)=>request.post('/user/dofinishregister',{
   tel ,  password
})  

//登录loginname:string , 
export const loginApi = ( password:string)=>request.post('/user/login',{
   password
})
//  loginname,